import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store/index";
import "vue-ydui/dist/ydui.rem.css";
import "./style/main.less";
import "./style/ydui-custome.less";
import "./style/animate.css";
import "vue-ydui/dist/ydui.base.css";
import config from "@/config";
import { Slider, SliderItem } from "vue-ydui/dist/lib.rem/slider";
import { Spinner } from "vue-ydui/dist/lib.rem/spinner";
import { CountDown } from "vue-ydui/dist/lib.rem/countdown";
import { CheckList, CheckListItem } from "vue-ydui/dist/lib.rem/checklist";
import { CheckBox, CheckBoxGroup } from "vue-ydui/dist/lib.rem/checkbox";
import { Switch } from "vue-ydui/dist/lib.rem/switch";
import {
  Confirm,
  Alert,
  Toast,
  Notify,
  Loading
} from "vue-ydui/dist/lib.rem/dialog";
import { CitySelect } from "vue-ydui/dist/lib.rem/cityselect";
import { Popup } from "vue-ydui/dist/lib.rem/popup";
Vue.component(Popup.name, Popup);
import "video.js/dist/video-js.css";
import "vue-video-player/src/custom-theme.css";
import VideoPlayer from "vue-video-player";
import preview from "vue-photo-preview";
import "vue-photo-preview/dist/skin.css";
import { Radio, RadioGroup } from "vue-ydui/dist/lib.rem/radio";
// 导入字体
import './style/fonts/iconfont.css'

Vue.component(Radio.name, Radio);
Vue.component(RadioGroup.name, RadioGroup);
Vue.use(VideoPlayer);
Vue.use(preview);
Vue.component(CitySelect.name, CitySelect);
Vue.component(Spinner.name, Spinner);
Vue.component(Slider.name, Slider);
Vue.component(SliderItem.name, SliderItem);
Vue.component(CountDown.name, CountDown);
Vue.component(CheckList.name, CheckList);
Vue.component(CheckListItem.name, CheckListItem);
Vue.component(CheckBox.name, CheckBox);
Vue.component(CheckBoxGroup.name, CheckBoxGroup);
Vue.component(Switch.name, Switch);
Vue.prototype.$config = config;
Vue.prototype.$dialog = {
  confirm: Confirm,
  alert: Alert,
  toast: Toast,
  notify: Notify,
  loading: Loading
};
Vue.prototype.$quest = "https://wx.chengkenet.com/api/";
Vue.config.productionTip = false;
Vue.filter("pointFix", data => {
  return parseInt(data);
});
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
